<?php
namespace App\Libs\Pagination;


use Illuminate\Pagination\BootstrapThreePresenter;

/**
 * 后台分页输出
 * Class AdminPresenter
 * @package App\Libs\Pagination
 */
class AdminPresenter extends BootstrapThreePresenter
{
    /**
     * Convert the URL window into Bootstrap HTML.
     *
     * @return string
     */
    public function render()
    {
        if ($this->hasPages()) {
            return sprintf(
                '<ul class="pagination pagination-sm pull-right admin-pagination">%s %s %s</ul>',
                $this->getPreviousButton(),
                $this->getLinks(),
                $this->getNextButton()
            );
        }
        return '';
    }

}